Paul's JavaScript Examples    
 
Check which Browser is used

An easy way of checking which browser is used by your visitor. This script just shows the result, but said result can be easily used send a specific browser to a specific page if that is your wish. or to let yoru visitor know your site may cause problems with his old(er) browser. The possibilities are limitless. A nice example can be found on http://www.iaehv.nl/users/paul/comic/. Try visiting that with like AWeb 3.1 and then with AWeb 3.1 spoofing as MS InterNet Explorer.

Example

This script is automatically started when the page is loaded.

Usage

This script is automatically started when the page is loaded.

Source

<SCRIPT LANGUAGE="javascript">
<!--
bName = navigator.appName;             
bVer = parseInt(navigator.appVersion);
document.write('Welcome, you are using ' + bName + ', version ' + bVer)
// -->
</SCRIPT>